<?php
if(!isset($_SESSION)){
	echo '<html>
	<head>
	<title>class-notes.de : Login</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="description" content="class-notes" />
	<meta name="robots" content="NOINDEX, NOFOLLOW">
	<script type="text/javascript" src="js/jquery.js" ></script>
	<script type="text/javascript" src="js/jquery_ui_custom.js" ></script>
	<link href="design/ui-lightness/jquery_ui.css" rel="stylesheet" type="text/css">
	<link href="design/style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>';
}
?>
<style>

#login_container {
	width: 300px;
	margin-top: 50px;
	margin-left: auto;
	margin-right: auto;
}
</style>

<div id="login_container" class="form">
<div class="header"> class-notes.de - Login </div>
<form action="notes/api/?action=user_login" method="POST">
<p class="label">Username:</p>
<input type="text" class="text" name="username" id="username">
<p class="label">Passwort:</p>
<input type="password" class="password" name="password" id="password">
<input class="button" type="button" value="Login" onClick="login()">
</form>
</div>

<?php
if(!isset($_SESSION)){
	echo '
	</body>
	</html>';
}
?>